<template>
	<el-card shadow="hover" style="margin-bottom: 10px">
		<el-space wrap>
			<div  v-for="item in chapterList" :key="item.id" @click="to(item.img)">
				<el-button color="#626aef" plain> 第{{ item.chapter }}集</el-button>
			</div>
		</el-space>
	</el-card>
</template>
<script setup lang="ts">
import { useRouter } from 'vue-router'
const router = useRouter()
const props = defineProps(<any>{
	chapterList: Array, // 接收传递的 hotList 属性，类型为数组
	itemId: Number,
});

function to(path:any) {
	router.push({path:"/viewInfo",query:{path:path,itemId:props.itemId}});
}
</script>


<style scoped>

</style>
